package cn.cyber.wxfire.service;

import cn.cyber.wxfire.mapper.TeacherMapper;
import cn.cyber.wxfire.pojo.News;
import cn.cyber.wxfire.pojo.Teacher;
import cn.cyber.wxfire.vo.teacherCourseVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TeacherServer {
    @Autowired
    private TeacherMapper teacherMapper;



    public List<Teacher> queryTeacherList(){
        return teacherMapper.queryTeacherList();
    }

    public List<News> queryNewsList(){
        return teacherMapper.queryNewsList();
    }

//    public void addStudent(Student student)
//    {
//        studentMapper.addStudent(student);
//    }
//
//    public  void updateStudent(Student student)
//    {
//        studentMapper.updateStudent(student);
//    }
    public  void privateUpdateTeacher(Teacher teacher)
    {
        teacherMapper.privateUpdateTeacher(teacher);
    }
//
//    public void deleteStudent(String num){ studentMapper.deleteStudent(num);}
//
//    public List<Student> findStudent(String flag){return studentMapper.findStudent(flag);}
//
    public List<Teacher> loginTeacher(Teacher teacher){return teacherMapper.loginTeacher(teacher);}

    public List<teacherCourseVo> teacherCourse(String tnum){return teacherMapper.teacherCourse(tnum);}

}
